﻿using System;
using Autofac;

namespace DayDayUp.Core
{

    public interface IEngine
    {

        object ResolveUnregistered(Type type);

        bool TryResolve(Type serviceType,out  object instance);

        void Initialize(IContainer container);

        T Resolve<T>() where T : class;
        T ResolveNamed<T>(string name) where T : class;

        object Resolve(Type type);


        T[] ResolveAll<T>();


    }
}
